#@cmsLayout()

#define cmsContent()
<div class="cms-breadcrumb">
	<i class="layui-icon layui-icon-flag"></i>
	<span class="layui-breadcrumb">
	  	<a href="">站点管理</a>
	  	<a><cite>新增站点</cite></a>
	</span>
</div>

<div class="body-card layui-card">
	<form id="saveSite" class="layui-form layui-form-pane" action="#(ctx)/cmsSite/saveSite" method="post" onsubmit="return false;">
  		<div class="layui-form-item">
    		<label class="layui-form-label">站点名称</label>
    		<div class="layui-input-inline">
      			<input type="text" name="siteName" placeholder="请输入站点名称" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux"><span class="color-warn">*</span></div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">站点标识</label>
    		<div class="layui-input-inline">
      			<input type="text" name="siteSign" placeholder="请输入站点标识" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux"><span class="color-warn">*</span>只能是英文字母和数字</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">站点域名</label>
    		<div class="layui-input-inline">
      			<input type="text" name="siteUrl" placeholder="请输入站点域名" class="layui-input">
    		</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">文件大小</label>
    		<div class="layui-input-inline">
      			<input type="text" name="fileMaxSize" placeholder="请输入文件上传大小限制" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux">支持单个文件的最大大小值，单位M</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">文件格式</label>
    		<div class="layui-input-inline">
      			<input type="text" name="fileSuffix" placeholder="请输入文件上传支持格式" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux">支持文件后缀，以|分割</div>
  		</div>
  		<div class="layui-form-item" pane>
    		<label class="layui-form-label">访问日志</label>
    		<div class="layui-input-inline">
      			<input type="checkbox" name="cdsAccessLog" value="1" lay-skin="switch" lay-text="开启|关闭">
    		</div>
    		<div class="layui-form-mid layui-word-aux">开启后将记录网站访问情况</div>
  		</div>
  		<div class="layui-form-item" pane>
    		<label class="layui-form-label">管理日志</label>
    		<div class="layui-input-inline">
      			<input type="checkbox" name="cmsAccessLog" value="1" lay-skin="switch" lay-text="开启|关闭">
    		</div>
    		<div class="layui-form-mid layui-word-aux">开启后将记录管理端操作</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">站点描述</label>
    		<div class="layui-input-block">
      			<input type="text" name="siteDes" placeholder="请输入站点描述信息" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux">考虑后续做搜索优化</div>
  		</div>
  		<div class="layui-form-item">
    		<div class="layui-input-block">
      			<button class="layui-btn" onclick="ajaxSaveForm('#saveSite')">立即提交</button>
      			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
    		</div>
  		</div>
  	</form>
</div>

#@jsInit()
#end